package cn.itsource.basic.service;

import cn.itsource.basic.domain.BaseDomain;
import cn.itsource.basic.query.BaseQuery;
import cn.itsource.basic.query.PageList;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

public interface IBaseService<T extends BaseDomain,Q extends BaseQuery> {

    //分页查询
    PageList<T> getAllByPage(Q q);

    //新增或者修改
    void saveOrUpdate(T t);

    //删除
    void delete(Long id);
}
